package com.techstar.api.pojo.onlinecar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 当月企业营运排名
 * @date 2021年8月9日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "onlinecar_month_enterprise_business_rank")
@org.hibernate.annotations.Table(appliesTo = "onlinecar_month_enterprise_business_rank",comment="pbtp-5-当月企业营运排名")
public class OnlinecarMonthEnterpriseBusinessRank {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '企业名称'")
	private String companyName;
	@Column(columnDefinition="varchar(100) COMMENT '注册网约车辆数'")
	private String regVehicleNum;
	@Column(columnDefinition="varchar(100) COMMENT '注册网约司机数'")
	private String regDriverNum;
	@Column(columnDefinition="varchar(100) COMMENT '当月违章记录次数'")
	private String violateRecordNum;
	@Column(columnDefinition="varchar(100) COMMENT '当月违法记录次数'")
	private String illegalRecordNum;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}

